<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>爱尔向日葵计划-网上申请</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="aplus-terminal" content="1"/>
<link href="/hyxt/m/mcss/style.css" rel="stylesheet" type="text/css">
<link href="/hyxt/m/mcss/xrk.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/jquery-1.7.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/revealm.css">
<script language="javascript" src="js/jquery.reveal.js"></script>
<script language="javascript" src="/js/left-fixed.js"></script>
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="/js/a.js" charset="utf-8" ></script>
<style>
.sqzyz-title {
    line-height: 0.78rem;
    color: #333;
    font-size: 0.28rem;
    text-align: center;
    padding-bottom: 0.06rem;
    background: url(../mimages/cwzyz_02.jpg) left bottom repeat-x;
}
.sqzyz-body-inner {
    padding-top: 0.32rem;
    font-size: 0.18rem;
    color: #333;
    line-height: 0.32rem;
	width:7rem;
	margin:0 auto;
}
.qz{
    font-size: 0.18rem;
    color: #333;
    line-height: 0.32rem;
	}
.rq{
    font-size: 0.18rem;
    color: #333;
    line-height: 0.32rem;
	}
.items {
    width: 2.6rem;
    margin: 0 auto;
}
.items .accept-items {
    float: left;
    margin-top: 0.18rem;
    width: 0.22rem;
    height: 0.22rem;
}
.items p {
    line-height: 0.6rem;
    font-size: 0.16rem;
    color: #000;
    float: left;
    padding-left: 0.13rem;
}
.button2 {
    width: 1.95rem;
    height: 0.54rem;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #f9f9f9;
    text-align: center;
    line-height: 0.54rem;
    font-size: 0.22rem;
    color: #d7000f;
    cursor: pointer;
    margin: 0 auto;
}
</style>
</head>
<body>
<div class="banner">
	<div class="images">
    <a href="#" data-reveal-id="myModal2" data-animation="none" >
 <?php 
 $face = $cfg_ml->fields['face'];
     if($face!=''){ echo "<img   src='$face' style='_margin-top:expression(( 180 - this.height ) / 2);cursor:pointer'  />\r\n";
	 }
  else echo "<img   src='/hyxt/pc/images/img_01.png' style='_margin-top:expression(( 180 - this.height ) / 2);cursor:pointer'   />\r\n";	
       			?>   </a>     
    </div>
    <p class="name"><script type="text/javascript">
           	var now=(new Date()).getHours();
			if(now>0&&now<=6){
				document.write("午夜好，");
			}
			else if(now>6&&now<=9){
				document.write("早上好，");
			}
			else if(now>9&&now<=11){
				document.write("上午好，");
			}else if(now>11&&now<=14){
				document.write("中午好，");
			}else if(now>14&&now<=18){
				document.write("下午好，");
			}else{ 
				document.write("晚上好，");
			}
			</script><?php echo $cfg_ml->M_UserName?>，<a href="../member/index_dom_xrk.php?fmdo=login&dopost=exit#">[退出]</a></p>
</div>
<div class="main">
	<div class="member-tab wssq-tab">
	<ul class="member-menu" style="width:6.78rem;">
    	<li><a href="indexm_xrksq.php" class="member-on" >网上申请</a></li>
    	<li><a  href="content_listm_xrk.php?channelid=25"  target="_self"  >信息管理</a></li>
    	<li><a  href="zhuangtai_listm_xrk.php?channelid=25"  target="_self"   >状态查询</a></li>
    	<li><a  href="edit_baseinfom_xrk.php?channelid=25"  target="_self"   >账户信息</a></li>
    </ul>
</div>
     <div class="main-body">
    <div class="yc-list">
          <p class="title">请选择</p>
            <div class="yc-btn">


                <a href="/member/indexm_xrksq.php?sn_type_ac=a">A+B</a>
              <a href="/member/indexm_xrksq.php?sn_type_ac=c">C</a>
            </div>
        </div>
<br>
<br>
<style>

.yc-btn a {
    width: 30%;
    /*width: 145px;*/
    height: 51px;
    text-align: center;
    line-height: 51px;
    background: #d7000f;
    font-size: 20px;
    color: #fff;
    display: inline-block;
    margin: 0 9%;
}
.yc-list .title {
    text-align: center;
    padding-top: 80px;
    font-size: 16px;
}
</style>


<script type="text/javascript">
var checked=document.getElementById("checked")
var register=document.getElementById("register")
register.onclick=function(){
        if(checked.checked==true){
                }
        else{
              	alert("请勾选申请须知");
                return false
                }
        }
</script>


</div>
 </div>
</div>
 <script type="text/javascript">
$(".wssq-form p").click(function(){
		$(this).next("form").slideToggle(300).siblings("form").slideUp(300);
	})
</script>
 <!--弹窗开始-->
<div id="myModal2" class="reveal-modal">
<div class="center">
<p class="title" style="display:none;">更换头像</p>
<form action="edit_face.php" method="post" enctype="multipart/form-data" name="form1">
    <input type="hidden" name="dopost" value="save" />
      <div id="mainCp">
        <h3 class="meTitle"><strong>用户头像</strong></h3>
        <div class="postForm">
          <p class="cellBg" style="display:none">
            <label style="width:90px">手工填写网址：</label>
            <input name='oldface' type='hidden' id='oldface' value='<?php echo $face; ?>' />
            <input name='faceurl' type='text' id='faceurl' size='35' class='intxt' style='width:250px' value='<?php echo $face; ?>' />
          <p>
            <label style="display:none;">选择上传的文件：</label>
            <input name="face" type="file" id="face" size="45" />
          </p>
          <p class="cellBg">
            <label style="width:90px"><b>原来的头像：</b></label>
            <div id='faceview' class='overflow mTB10 litPic'>
                 <?php
       					if($face!='') echo " <img class='' src='$face' style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
       			?>
              </div>
          </p>
          <p>
            <button class="export" type="submit">&nbsp;&nbsp;&nbsp;&nbsp;更&nbsp;&nbsp;新&nbsp;&nbsp;&nbsp;&nbsp;</button>
          </p>
    </div>
  </div>
</form> 
</div>
</div>
<!--弹窗结束-->
<script>
// 单张上传照片  删除照片
 $(" .fileinput").change(function () {
      var file = this.files[0];
      readFile(file,$(this).parent().siblings(".on"));
 });
 $(".on").mouseover(function () {
      $(this).children(".xian").show();
     $(this).children(".chahao").show();
 });
 $(".on").mouseleave(function () {
     $(this).children(".xian").hide();
      $(this).children(".chahao").hide();
 });
$(".chahao").click(function () {
     $(this).next().remove();
     $(".xian").hide();
     $(".chahao").hide();
     $(this).parent().hide();
      $(this).parent().siblings(".addhao").show();
     $(this).parent().siblings(".addhao").children().val("");
 });
 var on =document.querySelector(".on");
 //    需要把阅读的文件传进来file element是把读取到的内容放入的容器
 function readFile(file,element) {
 //        新建阅读器
 var reader = new FileReader();
 //        根据文件类型选择阅读方式
 switch (file.type){
 case 'image/jpg':
 case 'image/png':
 case 'image/jpeg':
 case 'image/gif':
 reader.readAsDataURL(file);
 break;
}
 //        当文件阅读结束后执行的方法
 reader.addEventListener('load',function () {
 //         如果说让读取的文件显示的话 还是需要通过文件的类型创建不同的标签
 switch (file.type){
     case 'image/jpg':
    case 'image/png':
     case 'image/jpeg':
    case 'image/gif':
    var img = document.createElement('img');
    img.src = reader.result;
    element.append(img);
  //  element.siblings(".addhao").hide();
    element.show();
     break;
   }
  });
 }
 // 批量上传部分
 var piliang = document.querySelector('#piliang');
 var on = $(".on");
 piliang.addEventListener('change',function () {
 for (var i = 0;i < this.files.length;i++){
 var file = this.files[i];
 on.eq(i).children(".chahao").next().remove();
 readFile(file,on.eq(i));
 }
 });
 //
 var on = $(".on");
 $(".next").click(function () {
    for (var i = 0; i < 10; i++) {
    console.log(on[i].childNodes.length);
   if (on[i].childNodes.length==6){
//这个判断就是说明里面有多少个孩子，孩子不够数，不会生成相册
      }else{
           alert("上传照片不足3张");
          $(".next").attr("href","javascript:void(0)");
           return
            }
     $(".next").attr("href","生成相册.html");
    }
 });
</script>
</body>
</html>